package com.shiyingzi.security.controller;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.shiyingzi.common.PageableData;
import com.shiyingzi.security.model.Menu;
import com.shiyingzi.security.service.IMenuService;


@RestController
@RequestMapping(value = "Menu")
public class MenuController {
	
	@Resource(name = IMenuService.BEAN_ID)
	private IMenuService menuService;
	
	@RequestMapping(value = "/query", method = { RequestMethod.GET, RequestMethod.POST })
	public PageableData<Menu> doQuery(int page, int limit, String menuName){
		return menuService.queryUserList(page, limit, menuName);
	}
}
